package com.itlong.cloud.app.resource;

import com.itlong.cloud.POJO.VO.app.AppGetCarPaymentDetailVO;
import com.itlong.cloud.app.service.IAppCarPaymentDetailService;
import com.itlong.cloud.paymenthub.IAppCarPaymentDetailServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *      车辆缴费明细暴露接口实现类
 * </desc>
 *
 * @createDate 2018/11/12
 */
@RestController
public class IAppCarPaymentDetailServiceResource implements IAppCarPaymentDetailServiceClient {

    @Autowired
    private IAppCarPaymentDetailService iAppCarPaymentDetailService;

    /**
     * <desc>
     *      获取该用户车辆缴费明细
     * </desc>
     *
     * @return 该用户车辆缴费明细
     * @author wanghzi
     * @createDate 2018/11/12
     */
    @Override
    @PostMapping(path = "app/car/getCarPayDetail")
    public AppGetCarPaymentDetailVO getCarPayDetail(@RequestParam("recordId") String recordId) throws Exception {
        return iAppCarPaymentDetailService.getCarPayDetail(recordId);
    }
}
